import { ElMessageBox } from 'element-plus'
export async function warnBox(params?: {
	title?: string
	message?: string
	cancelButtonText?: string
	confirmButtonText?: string
}) {
	const { title = '提示', message = '确定删除？', cancelButtonText = '取消', confirmButtonText = '确定' } = params || {}
	return await ElMessageBox({
		title,
		type: 'warning',
		message,
		showCancelButton: true,
		cancelButtonText,
		confirmButtonText
	})
}
